package com.pd.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

@Document(indexName = "pditems")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Item {

    @Id
    private Long id;
    private String branch;
    private String title;
    @Field(name = "sell_point")
    private String sellPoint;
    private String price;
    private String image;

}
